import request from '@/utils/request'

export default {
    // 上传头像
    uploadAvatar(formData) {
        return request.post('/auth/avatar', formData, {
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        })
    },

    // 删除头像
    deleteAvatar() {
        return request.delete('/auth/avatar')
    },

    // 获取上传配置
    getUploadConfig() {
        return request.get('/auth/avatar/config')
    }
} 